package com.github.catvod.spider.merge;

abstract class B {
  i h;
  
  private B() {}
  
  static void n(StringBuilder paramStringBuilder) {
    if (paramStringBuilder != null)
      paramStringBuilder.delete(0, paramStringBuilder.length()); 
  }
  
  final boolean BQ() {
    boolean bool;
    if (this.h == i.I) {
      bool = true;
    } else {
      bool = false;
    } 
    return bool;
  }
  
  final boolean F8() {
    boolean bool;
    if (this.h == i.V0) {
      bool = true;
    } else {
      bool = false;
    } 
    return bool;
  }
  
  final x I() {
    return (x)this;
  }
  
  final boolean Qy() {
    boolean bool;
    if (this.h == i.oC) {
      bool = true;
    } else {
      bool = false;
    } 
    return bool;
  }
  
  final d V0() {
    return (d)this;
  }
  
  final boolean W() {
    boolean bool;
    if (this.h == i.q) {
      bool = true;
    } else {
      bool = false;
    } 
    return bool;
  }
  
  final HA h() {
    return (HA)this;
  }
  
  String iU() {
    return getClass().getSimpleName();
  }
  
  final c j() {
    return (c)this;
  }
  
  final boolean oC() {
    return this instanceof yh;
  }
  
  final boolean oq() {
    boolean bool;
    if (this.h == i.j) {
      bool = true;
    } else {
      bool = false;
    } 
    return bool;
  }
  
  final qM q() {
    return (qM)this;
  }
  
  abstract B t();
  
  final boolean u() {
    boolean bool;
    if (this.h == i.h) {
      bool = true;
    } else {
      bool = false;
    } 
    return bool;
  }
  
  static class HA extends B {
    private String V0;
    
    HA() {
      super(null);
      this.h = B.i.I;
    }
    
    HA i4(String param1String) {
      this.V0 = param1String;
      return this;
    }
    
    B t() {
      this.V0 = null;
      return this;
    }
    
    public String toString() {
      return y();
    }
    
    String y() {
      return this.V0;
    }
  }
  
  static final class W extends B {
    W() {
      super(null);
      this.h = B.i.oC;
    }
    
    B t() {
      return this;
    }
    
    public String toString() {
      return "";
    }
  }
  
  static final class c extends B {
    final StringBuilder I = new StringBuilder();
    
    final StringBuilder V0 = new StringBuilder();
    
    String j = null;
    
    boolean oC = false;
    
    final StringBuilder q = new StringBuilder();
    
    c() {
      super(null);
      this.h = B.i.h;
    }
    
    public boolean GM() {
      return this.oC;
    }
    
    String PD() {
      return this.q.toString();
    }
    
    String i4() {
      return this.V0.toString();
    }
    
    public String j5() {
      return this.I.toString();
    }
    
    B t() {
      B.n(this.V0);
      this.j = null;
      B.n(this.q);
      B.n(this.I);
      this.oC = false;
      return this;
    }
    
    String y() {
      return this.j;
    }
  }
  
  static final class d extends B {
    private final StringBuilder V0 = new StringBuilder();
    
    private String j;
    
    boolean q = false;
    
    d() {
      super(null);
      this.h = B.i.q;
    }
    
    private void PD() {
      String str = this.j;
      if (str != null) {
        this.V0.append(str);
        this.j = null;
      } 
    }
    
    final d i4(char param1Char) {
      PD();
      this.V0.append(param1Char);
      return this;
    }
    
    String j5() {
      String str = this.j;
      if (str == null)
        str = this.V0.toString(); 
      return str;
    }
    
    B t() {
      B.n(this.V0);
      this.j = null;
      this.q = false;
      return this;
    }
    
    public String toString() {
      StringBuilder stringBuilder = new StringBuilder();
      stringBuilder.append("<!--");
      stringBuilder.append(j5());
      stringBuilder.append("-->");
      return stringBuilder.toString();
    }
    
    final d y(String param1String) {
      PD();
      if (this.V0.length() == 0) {
        this.j = param1String;
      } else {
        this.V0.append(param1String);
      } 
      return this;
    }
  }
  
  public enum i {
    I, V0, h, j, oC, q;
    
    private static final i[] BQ;
    
    static {
      i i1 = new i("Doctype", 0);
      h = i1;
      i i2 = new i("StartTag", 1);
      V0 = i2;
      i i6 = new i("EndTag", 2);
      j = i6;
      i i4 = new i("Comment", 3);
      q = i4;
      i i3 = new i("Character", 4);
      I = i3;
      i i5 = new i("EOF", 5);
      oC = i5;
      BQ = new i[] { i1, i2, i6, i4, i3, i5 };
    }
    
    public static i[] h() {
      return (i[])BQ.clone();
    }
  }
  
  static abstract class j extends B {
    private boolean BQ = false;
    
    private StringBuilder I = new StringBuilder();
    
    QF Qy;
    
    protected String V0;
    
    private boolean W = false;
    
    protected String j;
    
    private String oC;
    
    private String q;
    
    boolean u = false;
    
    j() {
      super(null);
    }
    
    private void w4() {
      this.W = true;
      String str = this.oC;
      if (str != null) {
        this.I.append(str);
        this.oC = null;
      } 
    }
    
    final String C4() {
      String str = this.V0;
      if (str == null || str.length() == 0) {
        boolean bool1 = true;
        R2.V0(bool1);
        return this.V0;
      } 
      boolean bool = false;
      R2.V0(bool);
      return this.V0;
    }
    
    final void GM(int[] param1ArrayOfint) {
      w4();
      int i = param1ArrayOfint.length;
      for (byte b = 0; b < i; b++) {
        int k = param1ArrayOfint[b];
        this.I.appendCodePoint(k);
      } 
    }
    
    final void Ig() {
      if (this.Qy == null)
        this.Qy = new QF(); 
      String str = this.q;
      if (str != null) {
        str = str.trim();
        this.q = str;
        if (str.length() > 0) {
          if (this.W) {
            if (this.I.length() > 0) {
              str = this.I.toString();
            } else {
              str = this.oC;
            } 
          } else if (this.BQ) {
            str = "";
          } else {
            str = null;
          } 
          this.Qy.q(this.q, str);
        } 
      } 
      this.q = null;
      this.BQ = false;
      this.W = false;
      B.n(this.I);
      this.oC = null;
    }
    
    final void LW() {
      if (this.q != null)
        Ig(); 
    }
    
    final boolean Og(String param1String) {
      boolean bool;
      QF qF = this.Qy;
      if (qF != null && qF.t(param1String)) {
        bool = true;
      } else {
        bool = false;
      } 
      return bool;
    }
    
    final void PD(char param1Char) {
      w4();
      this.I.append(param1Char);
    }
    
    final void PU(char param1Char) {
      yx(String.valueOf(param1Char));
    }
    
    final boolean R() {
      boolean bool;
      if (this.Qy != null) {
        bool = true;
      } else {
        bool = false;
      } 
      return bool;
    }
    
    final String T() {
      String str = this.V0;
      if (str == null)
        str = "[unset]"; 
      return str;
    }
    
    final boolean b() {
      return this.u;
    }
    
    final j f(String param1String) {
      this.V0 = param1String;
      this.j = AR.h(param1String);
      return this;
    }
    
    final void i4(char param1Char) {
      y(String.valueOf(param1Char));
    }
    
    final void j5(String param1String) {
      w4();
      if (this.I.length() == 0) {
        this.oC = param1String;
      } else {
        this.I.append(param1String);
      } 
    }
    
    final String l() {
      return this.j;
    }
    
    j nf() {
      this.V0 = null;
      this.j = null;
      this.q = null;
      B.n(this.I);
      this.oC = null;
      this.BQ = false;
      this.W = false;
      this.u = false;
      this.Qy = null;
      return this;
    }
    
    final void rd() {
      this.BQ = true;
    }
    
    final void y(String param1String) {
      String str = this.q;
      if (str != null)
        param1String = str.concat(param1String); 
      this.q = param1String;
    }
    
    final void yx(String param1String) {
      String str = this.V0;
      if (str != null)
        param1String = str.concat(param1String); 
      this.V0 = param1String;
      this.j = AR.h(param1String);
    }
  }
  
  static final class qM extends j {
    qM() {
      this.h = B.i.j;
    }
    
    public String toString() {
      StringBuilder stringBuilder = new StringBuilder();
      stringBuilder.append("</");
      stringBuilder.append(T());
      stringBuilder.append(">");
      return stringBuilder.toString();
    }
  }
  
  static final class x extends j {
    x() {
      this.h = B.i.V0;
    }
    
    x V(String param1String, QF param1QF) {
      this.V0 = param1String;
      this.Qy = param1QF;
      this.j = AR.h(param1String);
      return this;
    }
    
    B.j nf() {
      super.nf();
      this.Qy = null;
      return this;
    }
    
    public String toString() {
      if (R() && this.Qy.size() > 0) {
        StringBuilder stringBuilder1 = new StringBuilder();
        stringBuilder1.append("<");
        stringBuilder1.append(T());
        stringBuilder1.append(" ");
        stringBuilder1.append(this.Qy.toString());
        stringBuilder1.append(">");
        return stringBuilder1.toString();
      } 
      StringBuilder stringBuilder = new StringBuilder();
      stringBuilder.append("<");
      stringBuilder.append(T());
      stringBuilder.append(">");
      return stringBuilder.toString();
    }
  }
  
  static final class yh extends HA {
    yh(String param1String) {
      i4(param1String);
    }
    
    public String toString() {
      StringBuilder stringBuilder = new StringBuilder();
      stringBuilder.append("<![CDATA[");
      stringBuilder.append(y());
      stringBuilder.append("]]>");
      return stringBuilder.toString();
    }
  }
}


/* Location:              /Users/hetaiyi/Desktop/my/tech/java/study/aa/temp/temp.jar!/com/github/catvod/spider/merge/B.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       1.1.3
 */